<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
</h:head>
<h:body>

	<h:form id="new_user_form">
		<p:panel id="new_user_panel" header="New User"
			style="margin-bottom:10px;">
			<p:messages id="messages" />
			<h:panelGrid columns="2">
				<h:outputLabel for="login" value="Login:" />
				<p:inputText id="login" required="true" value="#{editUserController.userBean.login}" />

				<p:outputLabel for="password" value="Password:" />
				<p:password id="password" required="true" value="#{editUserController.userBean.password}" />

				<p:outputLabel for="first_name" value="First Name:" />
				<p:inputText id="first_name" value="#{editUserController.userBean.firstName}" />

				<p:outputLabel for="last_name" value="Last Name:" />
				<p:inputText id="last_name" value="#{editUserController.userBean.lastName}" />

				<p:outputLabel for="email" value="E-mail:" />
				<p:inputText id="email" value="#{editUserController.userBean.email}" />

				<p:outputLabel for="birth_date" value="Number:" />
				<p:calendar value="#{editUserController.userBean.birthDate}" id="birth_date" showOn="button"
					navigator="true" showButtonPanel="true" yearRange="c-100:c-17" />
			</h:panelGrid>
			<p:commandButton actionListener="#{editUserController.saveUser()}" update="new_user_panel"
			style="margin-right:20px;" value="Save"/>
		</p:panel>
	
	</h:form>

</h:body>
</html>
